﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-06-08 16:43:20
// 负责人：Sushee
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Component.DTO;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{

    /// <summary>
    ///评论信息 扩展
    /// </summary>
    public partial class CommentOperate
    {
        /// <summary>
    	/// 根据断言条件获取单个评论信息
    	/// </summary>
        public static CommentInfo QuerySingle(Expression<Func<CommentInfo, bool>> predicate)
        {
            return dal.QuerySingle(predicate);
        }
        /// <summary>
    	/// 根据断言条件获获取评论信息列表
    	/// </summary>
        public static IList<CommentInfo> QueryList(Expression<Func<CommentInfo, bool>> predicate)
        {
            return dal.QueryList(predicate);
        }

        /// <summary>
        /// 获取评论用户信息
        /// </summary>
        /// <param name="postId"></param>
        /// <param name="dataType"></param>
        /// <returns></returns>
        public static List<PostDetailCommentDto> GetPostCommentShopInfoByPostIdAndDataType(int postId, int dataType)
        {
            return dal.GetPostCommentShopInfoByPostIdAndDataType(postId, dataType);
        }
    }
}